#ifndef COMPILER_ONLONE
#include "header.cpp"
#endif


void Test1()
{
    vector<int> nums={-1,0,3,5,9,12};
    int target =9;
    int ret = Solution().search(nums,target);
    if(ret==4)
    {
        std::cout<<"通过测试用例1, 测试(nums = [-1,0,3,5,9,12], target = 9)通过 OK!"<<std::endl;
    }
    else
    {
        std::cout<<"未通过测试用例1, 测试的值为: (nums = [-1,0,3,5,9,12], target = 9)"<<std::endl;
    }
}

void Test2()
{
    vector<int> nums={-1,0,3,5,9,12};
    int target =2;
    int ret = Solution().search(nums,target);
    if(ret==-1)
    {
        std::cout<<"通过测试用例2, 测试(nums = [-1,0,3,5,9,12], target = 2)通过 OK!"<<std::endl;
    }
    else
    {
        std::cout<<"未通过测试用例2, 测试的值为: (nums = [-1,0,3,5,9,12], target = 2)"<<std::endl;
    }
}

int main()
{
    Test1();
    Test2();
}